package com.hornsun.domain.dbo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FavouriteExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FavouriteExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFavouriteGuidIsNull() {
            addCriterion("favourite_guid is null");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidIsNotNull() {
            addCriterion("favourite_guid is not null");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidEqualTo(String value) {
            addCriterion("favourite_guid =", value, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidNotEqualTo(String value) {
            addCriterion("favourite_guid <>", value, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidGreaterThan(String value) {
            addCriterion("favourite_guid >", value, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidGreaterThanOrEqualTo(String value) {
            addCriterion("favourite_guid >=", value, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidLessThan(String value) {
            addCriterion("favourite_guid <", value, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidLessThanOrEqualTo(String value) {
            addCriterion("favourite_guid <=", value, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidLike(String value) {
            addCriterion("favourite_guid like", value, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidNotLike(String value) {
            addCriterion("favourite_guid not like", value, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidIn(List<String> values) {
            addCriterion("favourite_guid in", values, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidNotIn(List<String> values) {
            addCriterion("favourite_guid not in", values, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidBetween(String value1, String value2) {
            addCriterion("favourite_guid between", value1, value2, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andFavouriteGuidNotBetween(String value1, String value2) {
            addCriterion("favourite_guid not between", value1, value2, "favouriteGuid");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNull() {
            addCriterion("openid is null");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNotNull() {
            addCriterion("openid is not null");
            return (Criteria) this;
        }

        public Criteria andOpenidEqualTo(String value) {
            addCriterion("openid =", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotEqualTo(String value) {
            addCriterion("openid <>", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThan(String value) {
            addCriterion("openid >", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThanOrEqualTo(String value) {
            addCriterion("openid >=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThan(String value) {
            addCriterion("openid <", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThanOrEqualTo(String value) {
            addCriterion("openid <=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLike(String value) {
            addCriterion("openid like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotLike(String value) {
            addCriterion("openid not like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidIn(List<String> values) {
            addCriterion("openid in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotIn(List<String> values) {
            addCriterion("openid not in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidBetween(String value1, String value2) {
            addCriterion("openid between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotBetween(String value1, String value2) {
            addCriterion("openid not between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Byte value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Byte value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Byte value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Byte value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Byte value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Byte> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Byte> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Byte value1, Byte value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidIsNull() {
            addCriterion("collect_content_guid is null");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidIsNotNull() {
            addCriterion("collect_content_guid is not null");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidEqualTo(String value) {
            addCriterion("collect_content_guid =", value, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidNotEqualTo(String value) {
            addCriterion("collect_content_guid <>", value, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidGreaterThan(String value) {
            addCriterion("collect_content_guid >", value, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidGreaterThanOrEqualTo(String value) {
            addCriterion("collect_content_guid >=", value, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidLessThan(String value) {
            addCriterion("collect_content_guid <", value, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidLessThanOrEqualTo(String value) {
            addCriterion("collect_content_guid <=", value, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidLike(String value) {
            addCriterion("collect_content_guid like", value, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidNotLike(String value) {
            addCriterion("collect_content_guid not like", value, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidIn(List<String> values) {
            addCriterion("collect_content_guid in", values, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidNotIn(List<String> values) {
            addCriterion("collect_content_guid not in", values, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidBetween(String value1, String value2) {
            addCriterion("collect_content_guid between", value1, value2, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectContentGuidNotBetween(String value1, String value2) {
            addCriterion("collect_content_guid not between", value1, value2, "collectContentGuid");
            return (Criteria) this;
        }

        public Criteria andCollectTimeIsNull() {
            addCriterion("collect_time is null");
            return (Criteria) this;
        }

        public Criteria andCollectTimeIsNotNull() {
            addCriterion("collect_time is not null");
            return (Criteria) this;
        }

        public Criteria andCollectTimeEqualTo(Date value) {
            addCriterion("collect_time =", value, "collectTime");
            return (Criteria) this;
        }

        public Criteria andCollectTimeNotEqualTo(Date value) {
            addCriterion("collect_time <>", value, "collectTime");
            return (Criteria) this;
        }

        public Criteria andCollectTimeGreaterThan(Date value) {
            addCriterion("collect_time >", value, "collectTime");
            return (Criteria) this;
        }

        public Criteria andCollectTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("collect_time >=", value, "collectTime");
            return (Criteria) this;
        }

        public Criteria andCollectTimeLessThan(Date value) {
            addCriterion("collect_time <", value, "collectTime");
            return (Criteria) this;
        }

        public Criteria andCollectTimeLessThanOrEqualTo(Date value) {
            addCriterion("collect_time <=", value, "collectTime");
            return (Criteria) this;
        }

        public Criteria andCollectTimeIn(List<Date> values) {
            addCriterion("collect_time in", values, "collectTime");
            return (Criteria) this;
        }

        public Criteria andCollectTimeNotIn(List<Date> values) {
            addCriterion("collect_time not in", values, "collectTime");
            return (Criteria) this;
        }

        public Criteria andCollectTimeBetween(Date value1, Date value2) {
            addCriterion("collect_time between", value1, value2, "collectTime");
            return (Criteria) this;
        }

        public Criteria andCollectTimeNotBetween(Date value1, Date value2) {
            addCriterion("collect_time not between", value1, value2, "collectTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}